﻿using PoemService.Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PoemGame.Domain.Services.Jielong
{
    public class JielongCheckGameConditionService : ICheckGameConditionService
    
    {
        private readonly IPoemService poemService;
        public JielongCheckGameConditionService(IPoemService _poemService)
        {
            poemService = _poemService;
        }

        public async Task<bool> CheckGameCondition(string condition)
        {
            return await poemService.IsPoemLineExist(condition);
        }
    }
}
